# coding: UTF-8
# ----------
# Project_Name : pythonProject
# File_Name : huangcongbing
# Author : asus
# Date_Time:2022/4/22 16:57
# Description :
# ----------
from selenium import  webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
def foo1():
"""

"""
    driver = webdriver.Chrome()
    driver.maximize_window()

    driver.get(r"http://news.baidu.com/")
    driver.find_element(By.XPATH,'/html').send_keys(Keys.PAGE_DOWN)
    time.sleep(1)

    #组合按键
    driver.find_element(By.XPATH,'/html').send_keys(Keys.CONTROL,'a')
    time.sleep(2)


    driver.quit()

if __name__ == "__main__":
    foo1()